package com.siwei.mes.mapper;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.ExperimentCheckItemorder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 快检/批检与试验台账和小票的关系(ExperimentCheckItemorder)表数据库访问层
 *
 * @author linzi
 * @since 2024-01-11 21:56:10
 */
public interface ExperimentCheckItemorderMapper extends BaseMapper<ExperimentCheckItemorder> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentCheckItemorder> getList(ExperimentCheckItemorder entity);

    /**
     * 根据类型删除
     *
     * @param checkType
     */
    void delectByCheckType(Integer checkType);

    /**
     * 根据任务id查询所有记录
     *
     * @param taskId 任务单id
     * @return
     */
    List<ExperimentCheckItemorder> selectByTaskId(@Param("taskId") Long taskId);
}
